{% extends "base.html" %}

{% load i18n columnize inlinetrans %}

{% block extrabreadcrumbs %}
  <span class="breadcrumbSeparator">→</span>
  <a href="{% url tournament_index %}" title="{% trans "Tournaments" %}">{% inline_trans "Tournaments" %}</a>
{% endblock %}

{% block content %}

{% block contenttitle %}
  <div id="content-title">
    <h1>{% inline_trans "Tournaments" %}</h1>
  </div>
{% endblock %}

<h2>{% inline_trans "Next tournaments" %}</h2>
<div id="tournament-list">
  {% if future_events %}
    <ul>
    {% for event in future_events %}
      <li>{{ event.start|date:"d/m/Y" }} - <a href="{{ event.get_absolute_url }}" title="{{ event }}">{{ event }}</a></li>
    {% endfor %}
    </ul>
  {% else %}
   <p>{% inline_trans "There is no next tournaments registered in website" %}
  {% endif %}
</div>

<h2>{% inline_trans "Past tournaments" %}</h2>
<div id="tournament-list">
  {% if past_events %}
    <ul>
    {% for event in past_events %}
      <li>{{ event.start|date:"d/m/Y" }} - <a href="{{ event.get_absolute_url }}" title="{{ event }}">{{ event }}</a></li>
    {% endfor %}
    </ul>
  {% else %}
   <p>{% inline_trans "There is no past tournaments registered in website" %}
  {% endif %}
</div>

{% endblock %}